package com.cyufeng.blog.controller;

import com.cyufeng.blog.dto.ArticleDto;
import com.cyufeng.blog.dto.ReprintDto;
import com.cyufeng.blog.service.ReprintService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 转载文章
 * @author Cyufeng
 * Data:2019.1.05
 */
@CrossOrigin
@RequestMapping("/blog/reprint")
@RestController
public class ReprintController {
    @Autowired
    ReprintService reprintService;
    /**
     *保存转载文章
     * @param reprintDto
     * @return
     */
    @PostMapping("/saveReprint")
    public String saveMoodTest(@RequestBody ReprintDto reprintDto) {
        String r = reprintService.saveReprint(reprintDto);
        return r;
    }
}
